package reflect.cls;

import org.junit.Test;

import java.io.IOException;
import java.util.Properties;

public class ClassDemo2 {
    //读取配置文件
    @Test
    public void testGetClass() throws IOException, ClassNotFoundException {
        Properties properties = new Properties();
        properties.load(ClassDemo2.class.getClassLoader().getResourceAsStream("student.ini"));
        String className=properties.getProperty("className");
        Class cls= Class.forName(className);
        System.out.println(cls);
    }

    @Test
    public void testGetClass2(){
        Properties properties = new Properties();
    }
}
